package com.fmdj.customer.feign;

import com.fmdj.common.util.CommonResult;
import com.fmdj.customer.controller.form.UseVoucherForm;
import io.swagger.v3.oas.annotations.Operation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import javax.validation.Valid;

@FeignClient(name = "fmdj-vhr")
public interface VhrServiceApi {

    @PostMapping("/voucher/customer/userVou cher")
    CommonResult userVoucher(@RequestBody @Valid UseVoucherForm form);
}
